Cover | TOC | Chap | Prev Chap | Prev Fig | Next Fig | Next Chap |
|
Figure 13.11
Lines in a line set mark the 12 edges of a box. |
|
Click on the image to view the VRML scene. |
#VRML V2.0 utf8 # The VRML 2.0 Sourcebook # Copyright (c) 1997 # Andrea L. Ames, David R. Nadeau, and John L. Moreland Shape { appearance Appearance { material Material { emissiveColor 1.0 1.0 1.0 } } geometry IndexedLineSet { coord Coordinate { point [ # Coordinates around the top of the cube -1.0 1.0 1.0, 1.0 1.0 1.0, 1.0 1.0 -1.0, -1.0 1.0 -1.0, # Coordinates around the bottom of the cube -1.0 -1.0 1.0, 1.0 -1.0 1.0, 1.0 -1.0 -1.0, -1.0 -1.0 -1.0 ] } coordIndex [ # top 0, 1, 2, 3, 0, -1, # bottom 4, 5, 6, 7, 4, -1, # vertical edges 0, 4, -1, 1, 5, -1, 2, 6, -1, 3, 7 ] } }